p ->
  h2 '闲着没事?来吐槽吧 '
  #unless @ischildroom then (span -> '你可以试试看改变一下路径,进入不同的房间哟~')
  #else (a href:'/', -> '返回根部')

form id:"form_tucao", class:"well", method:"POST", ->
  fieldset ->
    div class:"row-fluid", ->
      textarea class:"span", id:"content", name:"content", rows: 4, placeholder:"今天又有哪些欢乐事儿"
      div id:"tags", class:"pull-left", ->
        for _ in [0..2]
          div class:"btn-group pull-left", ->
            button class:"btn btn-mini", type:"button", "标签1"
            button class:"btn btn-mini dropdown-toggle", type:"button", ->
              i class:"icon-remove"
      div class:"input-prepend input-append pull-left", ->
        span class:"add-on", -> i class:"icon-tag"
        input type:"text", class:"input-mini", id:"tag", placeholder:"添加标签"
        button type:"button", class:"btn btn-primary", ->
          text "添加"
      button type:"submit", class:"btn btn-primary pull-right", ->
        text "提交"
        i class:"icon-comment"

#for i in @posts
ul id:"post", class:"unstyled", ->
  li ->
    blockquote ->
      p "刚才被一位面试的小姑娘质疑为什么选择小公司，虽然给出了体面的官方回答，但觉得不甩几句打脸话还是不快。你去之前的大公司永远都没你去之后的大公司大，所以赶紧读书编码测试上线面试，享受质变前的量变，不要图森破，真替你们作急啊！"
      div class:"row-fluid", ->
        div class:"span2", -> span class:"label", "2012-02-12 12:32"
        div class:"span1", -> label class:"label label-info", "吐槽"
        div class:"span1", -> address class:"label", "北京"
        div class:"pull-right", -> small "有点儿欢乐"
  for i in [0..50]
    li ->
      blockquote ->
        p "刚才被一位面试的小姑娘质疑为什么选择小公司，虽然给出了体面的官方回答，但觉得不甩几句打脸话还是不快。你去之前的大公司永远都没你去之后的大公司大，所以赶紧读书编码测试上线面试，享受质变前的量变，不要图森破，真替你们作急啊！"
        div class:"row-fluid", ->
          div class:"span2", -> span class:"label", "2012-02-12 12:32"
          div class:"span1", -> label class:"label label-info", "吐槽"
          div class:"span1", -> address class:"label", "北京"
          div class:"pull-right", -> small "有点儿欢乐"


div class:"progress", ->
  div class:"bar", style:"width: #{Math.round(@p/@PAGE_TOTAL)}%;"

ul class:"pager", ->
  if @previous
    li class:"previous", -> a href:"?p=#{@previous}", "&larr; 上一页"
  if @next
    li class:"next", -> a href:"?p=#{@next}", "下一页 &rarr;"

#Post = db.define "Post",
#  #title: { type: String }
#  content: { type: db.Text }
#  author_name: { type: String }
#  ip: { type: String }
#  address: { type: String }
#  tag_str: { type: String }
#
#  date_create: { type: Date, default: Date.now }
#  date_last: { type: Date, default: Date.now }
#  show: { type: String, defualt: "show"} #show, spam, hidden
#  img: { type: String }
#  content_render: { type: db.Text }
#
